package Mediator;

/**
 * @ProjectName: 23种设计模式
 * @Package: Mediator
 * @ClassName: ConcreteMediator
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/11 14:26
 * @Version: 1.0
 * 具体调停者类
 */
class ConcreteMediator implements Mediator{
    private ConcreteColleagueA colleagueA ;
    private ConcreteColleagueB colleagueB ;
    public void setColleagueA(ConcreteColleagueA colleagueA) {
        this.colleagueA = colleagueA;
    }
    public void setColleagueB(ConcreteColleagueB colleagueB) {
        this.colleagueB = colleagueB;
    }
    @Override
    public void notify(Colleague colleague) {
        System.out.println("协调通知消息");
    }
}
